//package com.inspur.edp.udt.generator.core.datatypeimpl.serialize;
//
//import com.inspur.edp.cef.designtime.api.IGspCommonField;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.CefDataTypeImplGeneratorContext;
//import com.inspur.edp.cef.generator.coreGenerator.base.serializer.WriteAssociationGenerator;
//import java.util.Arrays;
//import java.util.List;
//import org.eclipse.jdt.core.dom.Block;
//import org.eclipse.jdt.core.dom.ExpressionStatement;
//import org.eclipse.jdt.core.dom.MethodInvocation;
//
//public class WriteSimpleAssoUdtGenerator extends WriteAssociationGenerator {
//
//  public WriteSimpleAssoUdtGenerator(IGspCommonField item,
//      CefDataTypeImplGeneratorContext dataTypeGenCtx) {
//    super(item, dataTypeGenCtx);
//  }
//
//  @Override
//  protected Block buildMethodBody() {
//    Block result = super.buildMethodBody();
//    result.statements().addAll(result.statements().size() - 1, buildAssoExtendWriteStatement());
//    return result;
//  }
//
//  private List<ExpressionStatement> buildAssoExtendWriteStatement() {
//    MethodInvocation methodInvocation = ast.newMethodInvocation();
//    methodInvocation.setName(ast.newSimpleName("writeExtendAssoInfo"));
//    methodInvocation.arguments().add(ast.newSimpleName(ParamWriter));
//    methodInvocation.arguments().add(ast.newSimpleName(AssoValName));
//    methodInvocation.arguments().add(ast.newSimpleName(ParamSerializer));
//    return Arrays.asList(ast.newExpressionStatement(methodInvocation));
//  }
//}
